import { request } from '@umijs/max';
import type { RequestOptionsInit } from 'umi-request';

export const sinnetRequest = function (
    url: string,
    options: RequestOptionsInit & {
        skipErrorHandler?: boolean | undefined;
    },
) {
    const crOptions = { ...options, baseURL: API_SERVER.default };
    return request(url, crOptions);
};
